package com.hqhy.like.admin.order.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqhy.like.admin.order.pojo.entity.Order;
import com.hqhy.like.admin.order.pojo.vo.OrderDetailsStandardVO;
import com.hqhy.like.admin.order.pojo.vo.OrderEcharts2VO;
import com.hqhy.like.admin.order.pojo.vo.OrderListVO;
import com.hqhy.like.admin.order.pojo.vo.OrderStandardVO;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderListVO> selectAllOrderForAdmin();


    OrderListVO getStandardByOrderNo(String orderNo);

    List<OrderDetailsStandardVO> selectAllOrderDetailsForAdmin();

    List<OrderStandardVO> getStandardVOById(Long orderId);


    void deleteById(Long id);


    List<OrderEcharts2VO> getEcharts(LocalDateTime start, LocalDateTime end);
}
